package com.infocollect.project.api.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.infocollect.project.api.entity.TappSqlContentEntity;
import com.infocollect.project.api.mapper.TappSqlContentMapper;
import com.infocollect.project.api.service.ITappSqlContentService;
import org.springframework.stereotype.Service;

@Service
public class TappSqlContentServiceImpl extends ServiceImpl<TappSqlContentMapper, TappSqlContentEntity> implements ITappSqlContentService {
    /**
     * 保存执行sql
     */
    @Override
    public void saveSqlContent(String sqlcontent, Long id) {
        TappSqlContentEntity entity = new TappSqlContentEntity();
        entity.setSqlcontent(sqlcontent);
        entity.setFid(id);
        baseMapper.insert(entity);
    }
}
